package com.netty.util;

public class NettyMessage {

	private MessageHeader header;
	private MessageBody body;
	
	public MessageHeader getHeader() {
		return header;
	}
	public void setHeader(MessageHeader header) {
		this.header = header;
	}
	public MessageBody getBody() {
		return body;
	}
	public void setBody(MessageBody body) {
		this.body = body;
	}
	
	@Override
	public String toString() {
		return "NettyMessage [header=" + header + ", body=" + body + "]";
	}
	public boolean isEmpty(){
		if(header == null || body == null){
			return false;
		}
		return true;
	}
}
